<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<%@ page import="dao.*"%>
<%@ page import="service.*"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if(request.getSession().getAttribute("SESSION_USER")==null) {
	request.setAttribute("message","未登录");
	request.getRequestDispatcher("error.jsp").forward(request,response);
	return;
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/frame.css" rel="stylesheet" type="text/css" />
<title>商机发布</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">


</head>

<body>

<!-- 页头 左边栏 -->
<%@ include file="/common/header.jsp" %>
<%@ include file="/common/left-nav.jsp" %>
<script>setLeftFrame(4,1);</script>

<!-- 此处添加本页代码 -->
<div class="mainBlock">
	<div class="mainBlockHeader">
		<li><b>发布商机！</b> <input type="text" value="输入关键词"><input type="button" value="查询">   
				时间段<input type="text">到<input type="text" ><input type="button" value="查询"></li>
		<li><img src="img/tanhao.gif"></img>系统保留最近半年商机，如需查询之前商机，请致电客服：400.882.0656</li>
	</div>
	<div class="mainBlockBody">
		<html:form action="/shangjiFaOwn.do">
			<li style="text-align:center;">编辑区</li>
			<li>标  题*&nbsp;&nbsp;<html:text property="title" style="width:60%;"/></li>
			<li>关键词&nbsp;&nbsp;<html:text property="keyword" /></li>
			<li>有效期&nbsp;&nbsp;<html:text property="validDay" style="width:35px;" />天</li>
			<li>正文：限制140字内</li>
			<li><html:textarea property="content" style="width:80%;height:300px;"/></li> 
			<li><input type="submit" value="发布"></li>
		</html:form>
	</div>
</div>

<!-- 页脚 -->
<%@ include file="/common/footer.jsp" %>
</body>
</html>